package com.up.mongo.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "mongodb.index.auto")
public class AutoCreateIndexProperties {

    private boolean enable;

    private String dataId = "mongodb-index.json";
    private String configGroup ="GLOBAL_GROUP";

    private IndexModule module;

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getConfigGroup() {
        return configGroup;
    }

    public void setConfigGroup(String configGroup) {
        this.configGroup = configGroup;
    }

    public IndexModule getModule() {
        return module;
    }

    public void setModule(IndexModule module) {
        this.module = module;
    }
}
